<template>
  <div>
    <Navbar />
    <CartItem v-for="item in cartList" :key="item.id" :item="item" />
    <Settlement />
  </div>
</template>

<script setup>
import Navbar from '@/components/navBar/Navbar.vue';
import Settlement from './components/Settlement.vue';
import CartItem from './components/CartItem.vue';
import useCartStore from '@/stores/cart';
import { storeToRefs } from 'pinia';
const cartStore = useCartStore();
cartStore.getCart();
const { cartList } = storeToRefs(cartStore);

</script>

<style lang="scss" scoped>
</style>
